﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NineMine.Scm
{
    public class Annotate
    {
        public Annotate()
        {
            Lines = new List<string>();
            Revisions = new List<Revision>();
        }

        public List<string> Lines { get; set; }

        public List<Revision> Revisions { get; set; }

        public void AddLine(string line, Revision revision)
        {
            Lines.Add(line);
            Revisions.Add(revision);
        }

        public string Content
        {
            get { return string.Join("\n", Lines); }
        }

        public bool Empty { get { return Lines.Count == 0; } }
    }
}
